package com.tangyuan.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class VideoCommentDto {

    @NotEmpty(message = "评论内容不能为空")
    private String content;

    @NotNull(message = "评论id不能为空")
    @Min(value = 1, message = "视频不存在")
    private Long videoId;

    private Long parentId;



}
